package com.lingkang.top.seesister.utils;


import android.content.Context;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.model.GlideUrl;
import com.bumptech.glide.load.model.LazyHeaders;
import com.bumptech.glide.request.RequestListener;

public class GlideUtils {


    public static Glide callBack(Context context, String url,ImageView imageView, @Nullable RequestListener requestListener) {
        GlideUrl cookie = new GlideUrl(url, new LazyHeaders.Builder().addHeader("Referer", "https://www.mzitu.com/").build());
        Glide.with(context).load(cookie).listener(requestListener).into(imageView);
        return null;
    }

  public class  Referer{
      public static final String mzitu="https://www.mzitu.com/";
  }
}
